<html>
<body>                          
<h1>FOP Plugin</h1>
<p>
    The FOP plugin uses Apache's FOP (Formatting Objects Processor) to transform FO xml documents
    into PDFs and other formats.
</p>
<div id="after-summary">
    <p>To use the FOP plugin, create an instance of the transform target and supply any properties.
    e.g. the following transforms a FO xml document into a PDF:</p>
    <pre>&lt;plugin group="quokka.plugin.fop" version="?"&gt;
    &lt;target name="fop-pdf" template="transform"&gt;
        &lt;property name="in" value="src/fop/fo.xml"/&gt;
        &lt;property name="out" value="${q.project.targetDir}/fop/fo.pdf"/&gt;
    &lt;/target&gt;
&lt;/plugin&gt;</pre>
</div>
<div id="transform">
    <p><b>Properties:</b></p>
    <ul>
        <li><b>in</b><i> Mandatory.</i> Input XML file in FO format</li>
        <li><b>out</b><i> Mandatory.</i> Output file</li>
        <li><b>options</b><i> Optional.</i>  Any combination of <a href="#options">options</a> below.</li>
        <li><b>configuration</b><i> Optional.</i>  A FOP xml configuration file</li>
        <li><b>outputType</b><i> Optional.</i> Output format, either pdf, mif, pcl, ps, txt, svg, or at. Defaults to pdf</li>
        <li><b>maxMemory</b><i> Optional.</i> The maximum heap size to use for the forked JVM</li>
    </ul>
<p><a name="options"><span/></a><b>Options:</b></p>
    <pre>-d             debug mode
-x             dump configuration settings
-q             quiet mode
-l lang        the language to use for user information
-s             (-at output) omit tree below block areas
-txt.encoding  (-txt output encoding use the encoding for the output file.
               The encoding must be a valid java encoding.
-o [password]  pdf file will be encrypted with option owner password
-u [password]  pdf file will be encrypted with option user password
-noprint       pdf file will be encrypted without printing permission
-nocopy        pdf file will be encrypted without copy content permission
-noedit        pdf file will be encrypted without edit content permission
-noannotations pdf file will be encrypted without edit annotation permission
    </pre>
</div>
</body>
</html>